package com.bamboo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bamboo.mapper.SysMailSetMapper;
import com.bamboo.model.SysMailSet;
import com.bamboo.service.SysMailSetService;

@Service("sysMailSetService")
public class SysMailSetServiceImpl implements SysMailSetService {
	@Autowired
	private SysMailSetMapper sysMailSetMapper;
	
	@Override
	public SysMailSet queryObject(Long id){
		return sysMailSetMapper.queryObject(id);
	}
	
	@Override
	public List<SysMailSet> queryList(Map<String, Object> map){
		return sysMailSetMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysMailSetMapper.queryTotal(map);
	}
	
	@Override
	public void save(SysMailSet sysMailSet){
		sysMailSetMapper.save(sysMailSet);
	}
	
	@Override
	public void update(SysMailSet sysMailSet){
		sysMailSetMapper.update(sysMailSet);
	}
	
	@Override
	public void delete(Long id){
		sysMailSetMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysMailSetMapper.deleteBatch(ids);
	}
	
}
